cmake_minimum_required(VERSION 3.19)
set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER g++)
set(CMAKE_ASM_COMPILER  gcc)
set(CMAKE_AR ar)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_STANDARD 11)

project(imu_decoder)


set(CMAKE_INSTALL_PREFIX /usr/local)


add_executable(stim300_decoder decode_stim300.cpp WGS84.cpp nav_io.cpp imu_decoder.cpp)
add_executable(wit_decoder decode_wit.cpp WGS84.cpp nav_io.cpp imu_decoder.cpp)

install(TARGETS stim300_decoder )
install(TARGETS wit_decoder )